package org.massdeception.content.servlets.authors;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.massdeception.content.util.SlideUtils;

import com.google.appengine.api.users.User;

public class AuthorClearCacheServlet extends AuthorServlet
{
    public void process(HttpServletRequest request, HttpServletResponse response, User user)
        throws IOException, ServletException
    {
        SlideUtils.clearCache();
        
        // send them to the author servlet list
        RequestDispatcher dispatcher = request.getRequestDispatcher("/authorSelectSlides");
        dispatcher.forward(request, response);

        return;
    }
}
